<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
     <!-- <link href="css/admin.css"> -->
     <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="js/jquery-2.1.0.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="js/bootstrap.min.js"></script>
    <form id="form" action="${pageContext.request.contextPath}/SelectallServlet" method="post">
    <table border='1' class='table table-bordered table-hover'>
    <tr class='success'><th>学号</th><th>姓名</th><th>性别</th><th>年龄</th><th>专业</th><th>密码</th><th>操作</tr> 
    <c:forEach items='${list}' var='stu'>
    <tr>
     <td>${stu.sno}</td>
     <td>${stu.sname}</td>
     <td>${stu.sex}</td>
     <td>${stu.age}</td>
     <td>${stu.major}</td>
     <td>${stu.password}</td>
     <td>&nbsp;
     <a class='btn btn-default btn-sm' href=''>删除</a></td>
    </tr>
     </c:forEach>  
      
     </table> 
   </form>
     
     

    
   
</body>
</html>